package com.yuan.springcloud.order.beanmapper;

import com.yuan.springcloud.order.bean.ProductVO;
import com.yuan.springcloud.order.entity.Product;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author YouYuan
 * @date 2022/4/7 23:05
 */
@Mapper
public interface ProductMapper {

    ProductMapper INSTANSE = Mappers.getMapper(ProductMapper.class);

    ProductVO product2Vo(Product product);

    List<ProductVO> productList2Vo(List<Product> list);
}
